package com.kd.test;

import com.alibaba.fastjson.JSONObject;
import com.kd.crawler.entity.SocialAccountDoc;
import com.kd.crawler.utils.HttpRequestUtils;

public class AccountInsert {

	public static void main(String[] args) {
//		BrowserSearchDoc doc = new BrowserSearchDoc();
//		doc.setUrl("urls://");
//		doc.setTitle("����");
//		doc.setAuthor("author1");
//		doc.setDate(201703l);
//		doc.setContent("insert����1222");
//		doc.setSource(123);
//		doc.setPublishDate("2017-03-28 12:12:11");
//		doc.setAuthorAccount("΢��\u4f60\u597d \ue415 hello 123");
//		System.out.println("insertJSON: " + HttpRequestUtil.postJSON("http://192.168.1.46:38086/wechat/save", JSONObject.toJSONString(doc)));
		
//		WeiboDoc weiboDoc = new WeiboDoc();
//		weiboDoc.setUrl("https://");
//		weiboDoc.setTitle("title");
//		weiboDoc.setAuthor("author1");
//		weiboDoc.setDate(201703l);
//		weiboDoc.setContent("insert����122123132");
//		weiboDoc.setCommentNum(111);
//		weiboDoc.setClickNum(221);
//		weiboDoc.setSource(123);
//		weiboDoc.setLevel(2);
//		weiboDoc.setType(30);
//		weiboDoc.setPublishDate("2017-03-27 12:11:10");
//		// http://192.168.1.46:38086
//		// http://106.75.132.54:38086
//		System.out.println("insertJSON: " + HttpRequestUtil.postJSON("http://192.168.1.46:38086/weibo/save", JSONObject.toJSONString(weiboDoc)));
//		
//		FacebookDoc facebookDoc = new FacebookDoc();
//		facebookDoc.setUrl("https://");
//		facebookDoc.setTitle("title");
//		facebookDoc.setAuthor("author1");
//		facebookDoc.setDate(201703l);
//		facebookDoc.setContent("insert����122123132");
//		facebookDoc.setCommentNum(111);
//		facebookDoc.setClickNum(221);
//		facebookDoc.setSource(123);
//		facebookDoc.setLevel(2);
//		facebookDoc.setType(30);
//		facebookDoc.setPublishDate("2017-03-23");
//		// http://192.168.1.46:38086
//		// http://106.75.132.54:38086
//		System.out.println("insertJSON: " + HttpRequestUtil.postJSON("http://192.168.1.46:38086/facebook/save", JSONObject.toJSONString(facebookDoc)));
		
		SocialAccountDoc socialAccount = new SocialAccountDoc();
		socialAccount.setUrl("http://");
		socialAccount.setTitle("title");
		socialAccount.setAuthor("author1");
		socialAccount.setDate(201703l);
		socialAccount.setContent("insert����122123132");
		socialAccount.setCommentNum(111);
		socialAccount.setClickNum(221);
		socialAccount.setSource(123);
		socialAccount.setLevel(2);
		socialAccount.setType(30);
		socialAccount.setPublishDate("2017-03-23");
		// http://192.168.1.46:38086
		// http://106.75.132.54:38086
		System.out.println("insertJSON: " + HttpRequestUtils.postJSON("http://106.75.132.54:38288/socialAccount/save", JSONObject.toJSONString(socialAccount)));
		
	}
}
